package com.cw.util;

import java.util.UUID;

public class StringUtil {
	
	private static final String STR_EMPTY = "";
	
	private static final String STR_NULL = "null";


	private static final String undefined = "undefined";

	public static boolean isEmpty(String str)
	{
		return str == null || STR_EMPTY.equals(str.trim()) || STR_NULL.equals(str) || undefined.equals(str) ;
	}
	
	public static boolean isNotEmpty(String str)
	{
		return str != null && !(STR_EMPTY.equals(str.trim())) && !(STR_NULL.equals(str)) && !(undefined.equals(str)) ;
	}
	
	public static String getMsgUUID(){
		
		return UUID.randomUUID().toString().toUpperCase();
	}
}
